package cn.com.chengmandian.bike.service.impl;

import cn.com.chengmandian.bike.mapper.EbRechargeSettingMapper;
import cn.com.chengmandian.bike.model.EbRechargeSetting;
import cn.com.chengmandian.bike.service.IEbRechargeSettingService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 电单车运营-充值金额配置 服务实现类
 * </p>
 *
 * @author AutoGenerator
 * @since 2022-03-02
 */
@Service
public class EbRechargeSettingServiceImpl extends ServiceImpl<EbRechargeSettingMapper, EbRechargeSetting> implements IEbRechargeSettingService {

    @Override
    public List<EbRechargeSetting> selectRechargeList(Integer areaId) {
        return baseMapper.selectList(new LambdaQueryWrapper<EbRechargeSetting>().eq(EbRechargeSetting::getAreaId, areaId)
                .orderByAsc(EbRechargeSetting::getMoney));
    }
}
